
package com.xinzhidi.web.city.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xinzhidi.web.city.domain.AllAddress;
import com.xinzhidi.web.city.domain.City;
import com.xinzhidi.web.city.domain.vo.CityVo;
import com.xinzhidi.web.plot.domain.entity.CPlot;

import java.util.List;
import java.util.Map;

/**
 * @ClassName City
 * @Description:
 * @Author cx
 * @Date 2023-05-23 00:03
 * @Version V1.0
 **/
public interface CityService extends IService<City> {

     /**
      * @MethodName:
      * @Description: 通过省份ID获取城市列表
      * @Param:
      * @Return:
      * @Author: yangbin
      * @Date: 2019/9/7
     **/
    List<City> getCityList(Integer pid);

    List<CPlot> getPlotListByRegion(String area);

    /**
      * 功能描述：获取所有省市区地址
      * @Return:com.dkm.modules.wx.city.model.AllAddress 结果地址
      * @Author: Guo Liangbo
      * @Date: 2019/11/7 23:08
      */
    AllAddress getAllAddress();

    /**
      * 功能描述：获取省市区三级地址树形结构数据
     *  @Author: Guo cx
     *  @Date: 2019/11/7 23:08
      * @Return:java.util.List<com.dkm.modules.wx.city.model.City>
     */
    List<CityVo> getCityTreeList();

    /**
     * 获取省市区idmapcity'
     * @return
     */
    Map<String, City> getAreaMap();

}
